package fr.ensisa.sunspot.actor.writer.strategy;

import fr.ensisa.sunspot.actor.writer.media.IMedia;

/**
 *
 * @author Michel Hassenforder
 */

public abstract class AbstractWriteStrategy implements IWriteStrategy {

    private boolean activated;
    private IMedia media;

    public AbstractWriteStrategy (IMedia media) {
        super();
        this.media = media;
        this.activated = true;
    }

    /**
     * @return the media
     */
    public IMedia getMedia() {
        return media;
    }

    /**
     * @param media the media to set
     */
    public void setMedia(IMedia media) {
        this.media = media;
    }

    public void setActivated (boolean activated) {
        this.activated = activated;
    }

    public boolean isActivated () {
        return activated;
    }

}
